package com.eastfair.venueservice.dto;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import java.time.LocalTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.WorkOvertimeRuleOvertimeTypeEnum;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 加班规则
 * </p>
 *
 * @author dqq
 * @since 2023-05-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "WorkOvertimeRuleSaveDTO", description = "加班规则")
public class WorkOvertimeRuleSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 加班类型 #{SPACE_OVERTIME:整馆加班;SITE_OVERTIME:展位加班}
     */
    @ApiModelProperty(value = "加班类型 #{SPACE_OVERTIME:整馆加班;SITE_OVERTIME:展位加班}")
    private WorkOvertimeRuleOvertimeTypeEnum overtimeType;
    /**
     * 计时单价
     */
    @ApiModelProperty(value = "计时单价")
    private Integer timeUnit;
    /**
     * 申报时段1开始时间
     */
    @ApiModelProperty(value = "申报时段1开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime submitPeriodOneBegin;
    /**
     * 申报时段1结束时间
     */
    @ApiModelProperty(value = "申报时段1结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime submitPeriodOneEnd;
    /**
     * 申报时段2开始时间
     */
    @ApiModelProperty(value = "申报时段2开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime submitPeriodTwoBegin;
    /**
     * 申报时段2结束时间
     */
    @ApiModelProperty(value = "申报时段2结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime submitPeriodTwoEnd;
    /**
     * 申报截止时间
     */
    @ApiModelProperty(value = "申报截止时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm")
    @DateTimeFormat(pattern = "HH:mm")
    private LocalTime submitDeadline;
    /**
     * 加收费率
     */
    @ApiModelProperty(value = "加收费率")
    private BigDecimal surchargeRate;
    /**
     * 起订平米
     */
    @ApiModelProperty(value = "起订平米")
    private BigDecimal minArea;
    /**
     * 所属系统
     */
    @ApiModelProperty(value = "所属系统")
    @Size(max = 64, message = "所属系统长度不能超过64")
    private String belongSystem;
    /**
     * 主场ID
     */
    @ApiModelProperty(value = "主场ID")
    private Long homeId;
    /**
     * 主场名称
     */
    @ApiModelProperty(value = "主场名称")
    @Size(max = 64, message = "主场名称长度不能超过64")
    private String homeName;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    private Long exhibitionManageId;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 200, message = "展会名称长度不能超过200")
    private String exhibitionManageName;

}
